import request from "@/utils/request";

// 查询商品标签列表
export function listLabel(query) {
  return request({
    url: "/shopLabel/list",
    method: "get",
    params: query,
  });
}
/**查询所有label */
export function selectShopLabelAll() {
  return request({
    url: "/shopLabel/selectAll",
    method: "get",
  });
}
// 查询商品标签详细
export function getLabel(id) {
  return request({
    url: "/shopLabel/" + id,
    method: "get",
  });
}

// 新增商品标签
export function addLabel(data) {
  return request({
    url: "/shopLabel",
    method: "post",
    data: data,
  });
}

// 修改商品标签
export function updateLabel(data) {
  return request({
    url: "/shopLabel",
    method: "put",
    data: data,
  });
}

// 删除商品标签
export function delLabel(id) {
  return request({
    url: "/shopLabel/" + id,
    method: "delete",
  });
}
